package hibernate.entity;

import jakarta.persistence.*;
import lombok.*;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Entity
@Table(name = "books")
public class Book extends AbstractEntity {
    // 不允许为空，长度设置为100(默认255）
    @Column(nullable = false, length = 100)
    private String title;
}
